
import {
    DIC
} from '@/const/dic';
import Store from '../../store/';
const allPermission = Store.state.user.permission;
const isAdmin = Store.state.user.userInfo.superAdmin;
export const userWithdrawTableOption = {
    border: false,
    index: false,
    selection: false,
    calcHeight: 350,
    columnBtn: false,
    searchClearable: false,
    selectClearBtn: false,
    searchResetBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    tip: false,
    addBtn: false,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 180,
    editBtn: false,
    viewBtn: false,
    delBtn: false,
    column: [
        {
            "label": "提现状态",
            "prop": "status",
            "search": true,
            "type": "tag",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "140",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "placeholder": "请选择提现状态",
            "dicData": DIC["userWithdrawstatusDic"]
        },
        {
            "label": "提现金额",
            "prop": "withdrawAmount",
            "search": false,
            "type": "number",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行卡持卡人",
            "prop": "bankAccountUserName",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行",
            "prop": "bankName",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行卡卡号",
            "prop": "bankAccountNo",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "190",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "打款凭证",
            "prop": "processAccessory",
            "search": false,
            "type": "upload",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "listType": "picture-img",
            "showFileList": false,
            "imgHeight": 60,
            "imgWidth": "auto",
            "action": "_/admin/upload/image",
            "tip": "只能上传jpg/png文件，且不超过500kb",
            "rules": [{
                "required": true,
                "message": "请上传banner图片",
                "trigger": "blur"
            }]
        },
        {
            "label": "审核人",
            "prop": "checkOperator",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "审核备注",
            "prop": "checkRemark",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "审核时间",
            "prop": "checkTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        },
        {
            "label": "提现打款处理人",
            "prop": "processor",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "提现打款处理备注",
            "prop": "processRemark",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "180",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "提现打款处理时间",
            "prop": "processTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "180",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        },
        {
            "label": "创建时间",
            "prop": "createTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        },
        {
            "label": "创建人",
            "prop": "creator",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false
        },
        {
            "label": "修改时间",
            "prop": "modifyTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        },
        {
            "label": "修改人",
            "prop": "modifier",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false,
            "hide": false
        }
    ]
};


export const userWithdrawTableOption2 = {
    border: false,
    index: false,
    selection: false,
    calcHeight: 350,
    emptyBtn: false,
    submitBtn:false,
    submitText: '确认打款',
    columnBtn: false,
    searchClearable: false,
    selectClearBtn: false,
    searchResetBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    tip: false,
    addBtn: false,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 180,
    editBtn: false,
    viewBtn: false,
    delBtn: false,
    column: [
        {
            "label": "提现金额",
            "prop": "withdrawAmount",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行卡持卡人",
            "prop": "bankAccountUserName",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行",
            "prop": "bankName",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "银行卡卡号",
            "prop": "bankAccountNo",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },        
        {
            "label": "审核人",
            "prop": "checkOperator",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "审核备注",
            "prop": "checkRemark",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        },
        {
            "label": "审核时间",
            "prop": "checkTime",
            "search": false,
            "type": "static",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 24,
            "display": true,
            "hide": false,
            "format": "yyyy-MM-dd HH:mm:ss",
            "valueFormat": "yyyy-MM-dd HH:mm:ss"
        },
        {
            "label": "打款凭证",
            "prop": "processAccessory",
            "search": false,
            "type": "upload",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false,
            "listType": "picture-img",
            "showFileList": false,
            "imgHeight": 60,
            "imgWidth": "auto",
            "action": "_/admin/upload/image",
            "tip": "只能上传jpg/png文件，且不超过2M",
            "rules": [{
                "required": true,
                "message": "请上传打款凭证",
                "trigger": "blur"
            }]

        },
        {
            "label": '打款备注',
            "prop": "processRemark",
            "search": false,
            "type": "textarea",
            "fixed": false,
            "width": "170",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": false
        }

    ]
};
